package com.etc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.etc.dao.ProvinceMapper;
import com.etc.entity.Province;
import com.etc.service.ProvinceService;

@Service
public class ProvinceServiceImpl implements ProvinceService{
	@Resource
	private ProvinceMapper promapper;
	
	//查询所有省份
	@Override
	public List<Province> finAllProvince() {
		
		return promapper.selectAll();
	}

	@Override
	public Province findProvinceBypId(int pid) {
		
		return promapper.selectByproId(pid);
	}
	

}
